<template>
	<view> 
		<view class="smart-container">
			<view class="smart-panel-title"><text>容器11</text></view>
			<view class="smart-panel-h" @click="goDetailPage('view')"><text>view视图</text></view>
			<view class="smart-panel-title"><text>2.基础内容</text></view>
			<view class="smart-panel-h" @click="goDetailPage('text')"><text>text文本编辑 </text></view>
			<view class="smart-panel-h"><text>图标 </text></view>
			<view class="smart-panel-title"><text>3.表单组件</text></view>
			<view class="smart-panel-h"><text>button按钮</text></view>
			<view class="smart-panel-h"><text>checkbox多选款</text></view>
			<view class="smart-container"><text>label标签组件</text></view>
			<view class="smart-panel-h"><text>input输入框</text></view>
			<view class="smart-panel-h"><text>text area多行文本输入框</text></view>
			<view class="smart-panel-h"><text>form表单</text></view>
			<view class="smart-panel-title"><text>4.导航组件 </text></view>
			<view class="smart-panel-h"><text>navigator</text></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {
			uni.getStorage({
				key:'username',
				success:(result) => {
					console.log("getStorage",result.data);
				}
			})
		},
		methods: {
         goDetailPage(para){
			 if(typeof para ==='string'){
				 uni.navigateTo({
					 url:'/pages/tabBar/component/'+ para + '/' +para,
					 //url:'/pages/tabBar/component/view/view/'
					 //url:'/pages/tabBar/component/text/text/'
					 //url:'/pages/tabBar/component/button/button/'
				 });
					}else{
						uni.navigateTo({
							url:e.url
						});
				 }
			 }
		 }
	}	 
</script>

<style>

</style>